<template>
  <dt-modal-info ref='info' :title='title' :width='800'>
    <dt-grid ref="taskTable" :onFetch='onFetch' :height='500' />
  </dt-modal-info>
</template>

<script>
  import taskColumns from '../../opt/taskMoreColumns'
  import teamsApi from '@/biz/buildingManagement/teams'

  export default {
    data() {
      return {
        title: '消息提醒'
      }
    },
    methods: {
      show(data) {
        this.tipsList = data.tipsList
        this.$refs.info.show()
        this.$refs.taskTable.init(this, new taskColumns(this))
        this.$refs.taskTable.fetch()
      },
      hide() {
        this.$refs.info.hide()
      },
      onFetch(data) {
        return Promise.resolve(this.tipsList)
      },
      handleClick(data) {
        this.$emit('openTask', data)
        this.hide()
      }
    },
  }
</script>

<style lang="scss" scoped>

</style>